package br.com.view;


public class HtmlPadroes {
	public static String topoSite() {
		StringBuilder sb = new StringBuilder();
		sb.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
		sb.append("<html>\n");
		sb.append("<head>\n");
		sb.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n");
		sb.append("<title>OS CONTROL</title>\n");
		
		sb.append(FabricaScripts.mascaras());
		
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./in_log.css\"></link>\n");
		sb.append(FabricaScripts.addLocalscrpts());
		
		sb.append("<script type=\"text/javascript\" src=\"ajax.js\"></script>\n");
		sb.append(FabricaScripts.tableBox());
		sb.append(FabricaScripts.preencheComboBox());
		sb.append(FabricaScripts.modelWindow());
		
		//sb.append(FabricaScripts.apresentarOcultarDiv());
		
		sb.append("</head>\n");
		sb.append("<body>\n");
		return sb.toString();
	}
	public static String topoSiteEspecial() {
		StringBuilder sb = new StringBuilder();
		sb.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
		sb.append("<html>\n");
		sb.append("<head>\n");
		sb.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n");
		sb.append("<link rel='stylesheet' type='text/css' href='./fullcalendar/cupertino/theme.css' />\n");
		sb.append("<link rel='stylesheet' type='text/css' href='./fullcalendar/fullcalendar.css' />\n");
		sb.append("<link rel='stylesheet' type='text/css' href='./fullcalendar/fullcalendar.print.css' media='print' />\n");
		sb.append("<script type='text/javascript' src='./jquery/jquery-1.5.2.min.js'></script>\n");
		sb.append("<script type='text/javascript' src='./jquery/jquery-ui-1.8.11.custom.min.js'></script>\n");
		sb.append("<script type='text/javascript' src='./fullcalendar/fullcalendar.min.js'></script>\n");
		sb.append("<title>OS CONTROL</title>\n");
		
		//sb.append(FabricaScripts.mascaras());
		
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./in_log.css\"></link>\n");
		//sb.append(FabricaScripts.addLocalscrpts());
		
		sb.append("<script type=\"text/javascript\" src=\"ajax.js\"></script>\n");
		//sb.append(FabricaScripts.tableBox());
		sb.append(FabricaScripts.preencheComboBox());
		//sb.append(FabricaScripts.modelWindow());
		return sb.toString();
	}
	public static String topoSite(String conteudo) {
		StringBuilder sb = new StringBuilder();
		sb.append(FabricaHtml.criarDiv("topo", conteudo));
		return sb.toString();
	}

	public static String rodapeSite(String links) {
		StringBuilder sb = new StringBuilder();
		sb.append(FabricaHtml.criarDiv("base", "&copy; OS Control (Sistema WEB para controle de OS) - Version 1.0"));
		sb.append("</body>");
		sb.append("</html>");
		return sb.toString();
	}
	public static String tabsSite(){
		StringBuilder sb = new StringBuilder();
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "content_1","tab active","Perfil")),"tab active"));
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "content_2","tab","Endere�o")),"tab"));
		return sb.toString();
	}
	public static String tabsSiteMor(){
		StringBuilder sb = new StringBuilder();
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "content_1","tab active","Perfil")),"tab active"));
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "content_2","tab","Endere�o")),"tab"));
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "content_3","tab","Adicionais")),"tab"));
		return sb.toString();
	}
	public static String tabsSiteConta(){
		StringBuilder sb = new StringBuilder();
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "content_1","tab active","Geral")),"tab active"));
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "content_2","tab","Configura��o")),"tab"));
		return sb.toString();
	}
	
	public static String IncTopo(){
		StringBuilder sb = new StringBuilder();
		sb.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
		sb.append("<html>\n");
		sb.append("<head>\n");
		sb.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n");
		sb.append("<title>OS Control</title>\n");
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./css_cadastro.css\" media=\"screen\" charset=\"utf-8\" />\n");
		sb.append("<script type=\"text/javascript\" src=\"./js/jquery.min.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"./js/jquery-1.2.3.js\"></script> \n ");
		sb.append("<script type=\"text/javascript\" src=\"./js/jquery.curvycorners.min.js\"></script>\n");
		sb.append("<script type='text/javascript' src='./js/jquery.validate.js'></script>\n");
		sb.append("<link type=\"text/css\" href=\"sysjava/css/ui-lightness/jquery-ui-1.8.16.custom.css\" rel=\"stylesheet\" />\n");
		sb.append("<link type=\"text/css\" href=\"imagens/jquery.alerts-1.1/jquery.alerts.css\" rel=\"stylesheet\" />\n");
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./css.css\" media=\"screen\" charset=\"utf-8\" />\n");
		
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./demo_page.css\" media=\"screen\" charset=\"utf-8\" />\n");
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./demo_table.css\" media=\"screen\" charset=\"utf-8\" />\n");
		
		sb.append("<script type=\"text/javascript\" src=\"sysjava/js/jquery-1.6.2.min.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"sysjava/js/jquery-ui-1.8.16.custom.min.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"imagens/jquery.alerts-1.1/jquery.alerts.js\"></script>\n");
		sb.append("<script src=\"sysjava/js/jquery.maskMoney.js\" type=\"text/javascript\"></script>");
		sb.append("<script type=\"text/javascript\" src=\"./js/jquery.maskedinput-1.1.2.js\"></script>");
		
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/external/jquery.bgiframe-2.1.2.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.core.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.widget.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.mouse.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.button.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.draggable.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.position.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.resizable.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.dialog.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.effects.core.js\"></script>\n");
		
		//sb.append("<script type=\"text/javascript\" src=\"js/jquery.maskMoney.js\"></script>\n");
		sb.append("<script src=\"jgcharts/highcharts.js\"></script>\n");
		sb.append("<script src=\"jgcharts/exporting.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"js/funcoes.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"jquery/jquery.validate.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"js/jquery.dataTables.min.js\"></script>\n");
		//sb.append("<script type=\"text/javascript\">\n");

		//sb.append(FabricaScripts.alterDiv());
		//sb.append(FabricaScripts.mascaras());
		sb.append(FabricaScripts.divsArredond("formularioIni"));
		sb.append(FabricaScripts.divsArredond("form"));
		//sb.append(FabricaScripts.divsArredond("menuIni"));
		sb.append("</head>\n");
		sb.append("<body>\n");
		return sb.toString();
	}
	
	//metodo principal - tem todos os jquery que preciso e tambem fun�oes
	
	public static String IncTopoIntern(){
		StringBuilder sb = new StringBuilder();
		//sb.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
		sb.append("<!DOCTYPE html>");
		sb.append("<html lang=\"en\">\n");
		sb.append("<head>\n");
		sb.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n");
		sb.append("<title>OS CONTROL</title>\n");
		sb.append("<link type=\"text/css\" href=\"sysjava/css/ui-lightness/jquery-ui-1.9.2.custom.min.css\" rel=\"stylesheet\" />\n");
		sb.append("<link type=\"text/css\" href=\"imagens/jquery.alerts-1.1/jquery.alerts.css\" rel=\"stylesheet\" />\n");
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./css.css\" media=\"screen\" charset=\"utf-8\" />\n");
		
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./demo_page.css\" media=\"screen\" charset=\"utf-8\" />\n");
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./demo_table.css\" media=\"screen\" charset=\"utf-8\" />\n");
		
		sb.append("<script type=\"text/javascript\" src=\"sysjava/js/jquery-1.6.2.min.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"sysjava/js/jquery-ui-1.9.2.custom.min.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"imagens/jquery.alerts-1.1/jquery.alerts.js\"></script>\n");
		sb.append("<script src=\"sysjava/js/jquery.maskMoney.js\" type=\"text/javascript\"></script>");
		sb.append("<script type=\"text/javascript\" src=\"./js/jquery.maskedinput-1.1.2.js\"></script>");
		
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/external/jquery.bgiframe-2.1.2.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.core.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.widget.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.mouse.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.button.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.draggable.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.position.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.resizable.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.ui.dialog.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"development-bundle/ui/jquery.effects.core.js\"></script>\n");
		
		sb.append("<script type=\"text/javascript\" src=\"js/jquery.maskMoney.js\"></script>\n");
		sb.append("<script src=\"jgcharts/highcharts.js\"></script>\n");
		sb.append("<script src=\"jgcharts/exporting.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"js/funcoes.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"jquery/jquery.validate.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"js/jquery.dataTables.min.js\"></script>\n");
		sb.append("<script type=\"text/javascript\">\n");

		sb.append(FabricaScripts.cssJquery());
		sb.append("</head>\n");
		sb.append("<body>\n");
		return sb.toString();
	}
	
	//estrutura para menus e sub menus - cria-se um metodo que apenas � chamado, assim s� a instancias.
	
	public static String menuIniIntern(){
		StringBuilder sb = new StringBuilder();		
		sb.append(FabricaHtml.criarUlNotClose());
			sb.append(FabricaHtml.criarLiNotClose());
				sb.append(FabricaHtml.criarAsp("#", "Servico","Servico","Servico","Servico", "Servico"));
			sb.append(FabricaHtml.liClose());
		//	sb.append(FabricaHtml.criarLiNotClose());
			//	sb.append(FabricaHtml.criarAsp("#", "Cadastro de Funcionario","Cadastro de Funcionario","Cadastro de Funcionario","Cadastro de Funcionario", "Cadastro de Funcionario"));
		//	sb.append(FabricaHtml.liClose());
			
			sb.append(FabricaHtml.criarLiNotClose());
			sb.append(FabricaHtml.criarAsp("#", "Cadastro","","Cadastro","Cadastro", "Cadastro"));
				
			sb.append(FabricaHtml.criarUlNotClose());
			
				sb.append(FabricaHtml.criarLiNotClose());
					sb.append(FabricaHtml.criarAsp("#", "Cliente","Cliente","Cliente","Cliente", "Cliente"));
				sb.append(FabricaHtml.liClose());
				
				sb.append(FabricaHtml.criarLiNotClose());
					sb.append(FabricaHtml.criarAsp("#", "Funcionario","Funcionario","Funcionario","Funcionario", "Funcionario"));
				sb.append(FabricaHtml.liClose());
				
				sb.append(FabricaHtml.criarLiNotClose());
					sb.append(FabricaHtml.criarAsp("#", "Veiculo","Veiculo","Veiculo","Veiculo", "Veiculo"));
				sb.append(FabricaHtml.liClose());
				
				sb.append(FabricaHtml.criarLiNotClose());
					sb.append(FabricaHtml.criarAsp("#", "Responsavel","Responsavel","Responsavel","Responsavel", "Responsavel"));
				sb.append(FabricaHtml.liClose());
				sb.append(FabricaHtml.criarLiNotClose());
				sb.append(FabricaHtml.criarAsp("#", "Bairro","Bairro","Bairro","Bairro", "Bairro"));
			sb.append(FabricaHtml.liClose());
			sb.append(FabricaHtml.ulClose());
			
		/*sb.append(FabricaHtml.liClose());
			sb.append(FabricaHtml.criarLiNotClose());
				sb.append(FabricaHtml.criarAsp("#", "Favorecidos","","Favorecidos","Favorecidos", "favorevidos"));
					
			sb.append(FabricaHtml.criarUlNotClose());
				
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Cadastrar","","cadastroFavorecido","Cadastrar Favorecido", "favorecido"));
					sb.append(FabricaHtml.liClose());
					
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Listar Favorecidos","favorecido","favorecido","Listar Favorecidos", "favorecidList"));
					sb.append(FabricaHtml.liClose());
				
			sb.append(FabricaHtml.ulClose());
				
			sb.append(FabricaHtml.liClose());*/
			
			/*sb.append(FabricaHtml.criarLiNotClose());
				sb.append(FabricaHtml.criarAsp("#", "Conta","","","Conta", "conta"));
				
				//sub munus
				sb.append(FabricaHtml.criarUlNotClose());
				
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Conta","cadastroConta","cadastroConta","Cadastro Conta", "conta"));
					sb.append(FabricaHtml.liClose());
					
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Conta a Pagar","cadastroContaAReceber","cadastroContaAReceber","Contas a Receber", "contaAPagar"));
					sb.append(FabricaHtml.liClose());
					
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Conta a Receber","cadastroContaAPagar","cadastroContaAPagar","Contas a Pagar", "contaAReceber"));
					sb.append(FabricaHtml.liClose());
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Contas Por Data","","ContaPorData","Contas Por Data", "CalendarioContas"));
					sb.append(FabricaHtml.liClose());
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Lista de Contas","ListaConta","ListaConta","Lista de Contas", "ListaConta"));
					sb.append(FabricaHtml.liClose());
					sb.append(FabricaHtml.criarLiNotClose());
						sb.append(FabricaHtml.criarAsp("#", "Lista de Contas Banco","ContasBanco","ContasBanco","Lista Contas Banco", "ContasBanco"));
					sb.append(FabricaHtml.liClose());
						
				sb.append(FabricaHtml.ulClose());
				
			sb.append(FabricaHtml.liClose());
			
			
			 */
			sb.append(FabricaHtml.criarLiNotClose());
				sb.append(FabricaHtml.criarAsp("#", "Listas","Listas","Listas","Listas", "Listas"));
				
				sb.append(FabricaHtml.criarUlNotClose());
				
				sb.append(FabricaHtml.criarLiNotClose());
					sb.append(FabricaHtml.criarAsp("#", " Servicos ","Servicos","Servicos","Servicos", "Servicos"));
				sb.append(FabricaHtml.liClose());
				sb.append(FabricaHtml.criarLiNotClose());
					sb.append(FabricaHtml.criarAsp("#", "   Clientes   ","Clientes","Clientes","Clientes", "Clientes"));
				sb.append(FabricaHtml.liClose());
			
			sb.append(FabricaHtml.ulClose());
				
			sb.append(FabricaHtml.liClose());
		sb.append(FabricaHtml.ulClose());
		return sb.toString();
	}

	
	//metodos da pagina inicial.... simples e basicos
	public static String IncTop(){
		StringBuilder sb = new StringBuilder();
		sb.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
		sb.append("<html>\n");
		sb.append("<head>\n");
		sb.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n");
		sb.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"./css_cadastro.css\" media=\"screen\" charset=\"utf-8\" />\n");
		sb.append("<script type=\"text/javascript\" src=\"./js/jquery.min.js\"></script>\n");
		sb.append("<script type=\"text/javascript\" src=\"./js/jquery-1.2.3.js\"></script> \n ");
		sb.append("<script type='text/javascript' src='./js/jquery.validate.js'></script>\n");
		sb.append(FabricaScripts.alterDiv());
		sb.append(FabricaScripts.mascaras());
		sb.append("</head>\n");
		return sb.toString();
	}
	
	public static String menuIni(){
		StringBuilder sb = new StringBuilder();
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "Cadastre-se e Aproveite","perfil","perfil","Cadastro", "perfil")),"ini"));
		sb.append(FabricaHtml.criarUl(FabricaHtml.criarLi(FabricaHtml.criarAsp("#", "Login","login","login","Login", "login")),"ini"));
		return sb.toString();
	}
}
